package com.example.form.dao;

import com.example.form.model.Board;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BoardMapper {
    int insert(Board row);

    int insertSelective(Board row);

    Board selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Board row);

    int updateByPrimaryKey(Board row);

    /**
     * 查询num条记录
     * @param num 条数
     * @return  返回查到的前num的条集合
     */
    List<Board> selectByNum(@Param("num") Integer num);
}